{//前台 校区热线上门情况录入}
<include file="Public:header" />
<load file="__ROOT__/js/datepick/jquery.datepick.css" />
<load file="__ROOT__/js/datepick/jquery.datepick.js" />
<load file="__ROOT__/js/datepick/jquery.datepick-zh-CN.js" />
<load file="__ROOT__/js/ppts/qt_input_rexianshangmen.js" />
<script type="text/javascript">
    $(function(){
        $(document).ready(function(){
            $('[name=rs_come_time]').datepick({dateFormat: 'yy_mm_dd'});
        });
        $('#save').click(function(){
            if(check()){
                $("form:first").submit();
            }
        });
        function check(){
            if($('[name=rs_come_time]').val()==''){
                alert('请正确选择来访日期！');
                $('[name=rs_come_time]').focus();
                return false;
            }
            return true;
        }

        $('#rs_qianyue_jine').hide();
        $('#rs_shishou_jine').hide();


        $('[name=rs_nowqianyue]').change(function(){
            check_rs_nowqianyue();
        });


        function check_rs_nowqianyue(){
            var value=$('[name=rs_nowqianyue]').val();
            if(value=='是'){
                $('#rs_qianyue_jine').show();
                $('#rs_shishou_jine').show();
            }else{
                $('#rs_qianyue_jine').hide();
                $('#rs_shishou_jine').hide();
                $('[name=rs_qianyue_jine]').val('0');
                $('[name=rs_shishou_jine]').val('0');
            }
        }

        $('[name=rs_kind]').change(function(){
            var value=$('[name=rs_kind]').val();
            if(value=='热线'){
                $('#rs_fang_kind').hide();
                $('#rs_laifang').hide();
                $('#rs_nowqianyue').hide();
                //check_rs_nowqianyue();
                $('#rs_qianyue_jine').hide();
                $('#rs_shishou_jine').hide();
                $('[name=rs_qianyue_jine]').val('0');
                $('[name=rs_shishou_jine]').val('0');
                $('[name=rs_qudao]').append('<option value="路过" id="luguo">路过</option>');
                $('[name=rs_fang_kind]').prepend('<option value="热线" id="rexian_kk">热线</option>');
                $('#zhifang').remove();
                $('#ksm').remove();
            }else{
                $('#rs_fang_kind').show();
                $('#rs_laifang').show();
                $('#rs_nowqianyue').show();
                var value1=$('[name=rs_nowqianyue]').val();
                check_rs_nowqianyue();

                $('#rexian_kk').remove();
                $('#luguo').remove();
                $('[name=rs_qudao]').append('<option value="直访" id="zhifang">直访</option>');
                $('[name=rs_qudao]').append('<option value="KSM" id="ksm">KSM</option>');
            }
        });

    });
</script>
<div class="body">
    <b>校区热线上门情况录入：</b><br /><br />
    <table width="500" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse" bordercolor="#000000">
    <form name="save" action="{:U('ppts/qt_save_input_rexianshangmen')}" method="POST">
        <tr>
            <td width="30%" align="right">来访类型：</td>
            <td width="70%">
                <div style="margin-left: 10px;">
                    <select name="rs_kind">
                        <option value="上门">上门</option>
                        <option value="热线">热线</option>
                    </select>
                </div>
            </td>
        </tr>
        
        <tr>
            <td width="30%" align="right">来访日期：</td>
            <td width="70%"><div style="margin-left: 10px;">
                    <input type="text" size="15" value="" name="rs_come_time" readonly style="cursor: pointer;" />
                </div></td>
        </tr>
        <tr>
            <td width="30%" align="right">了解渠道：</td>
            <td width="70%">
                <div style="margin-left: 10px;">
                    <select name="rs_qudao">
                        <option value="短信">短信</option>
                        <option value="直访" id="zhifang">直访</option>
                        <!--<option value="路过" id="luguo">路过</option>-->
                        <option value="宣传单">宣传单</option>
                        <option value="辽沈晚报">辽沈晚报</option>
                        <option value="华商晨报">华商晨报</option>
                        <option value="沈阳晚报">沈阳晚报</option>
                        <option value="亲友介绍">亲友介绍</option>
                        <option value="户外广告">户外广告</option>
                        <option value="网络">网络</option>
                        <option value="KSM" id="ksm">KSM</option>
                        <option value="地推">地推</option>
                        <option value="不详">不详</option>
                    </select>
                </div></td>
        </tr>
        <tr id="rs_fang_kind">
            <td width="30%" align="right">直访/约访：</td>
            <td width="70%"><div style="margin-left: 10px;">
                    <select name="rs_fang_kind">
                        <option value="直访">直访</option>
                        <option value="约访">约访</option>
                    </select>

            </div></td>
        </tr>
        <tr id="rs_laifang">
            <td width="30%" align="right">之前是否来访：</td>
            <td width="70%"><div style="margin-left: 10px;">
                    <select name="rs_laifang">
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>

                </div></td>
        </tr>
        <tr id="rs_nowqianyue">
            <td width="30%" align="right">当日来访签约：</td>
            <td width="70%"><div style="margin-left: 10px;">
                    <select name="rs_nowqianyue">
                        <option value="否">否</option>
                        <option value="是">是</option>
                        <!--<option value="坏账">坏账</option>-->
                    </select>
                    
                </div></td>
        </tr>
        <tr id="rs_qianyue_jine">
            <td width="30%" align="right">签约金额：</td>
            <td width="70%"><div style="margin-left: 10px;"><input type="text" size="15" value="0" name="rs_qianyue_jine" /><span id="pop_rs_qianyue_jine" style="color:red;"></span>(必填)</div></td>
        </tr>
        <tr id="rs_shishou_jine">
            <td width="30%" align="right">实收金额：</td>
            <td width="70%"><div style="margin-left: 10px;"><input type="text" size="15" value="0" name="rs_shishou_jine" /><span id="pop_rs_shishou_jine" style="color:red;"></span>(必填)</div></td>
        </tr>
        <tr>
            <td width="30%" align="right">学校：</td>
            <td width="70%"><div style="margin-left: 10px;">
                    <input type="text" size="15" value="" name="rs_stu_school" /><span id="pop_stu_school" style="color:red;"></span></div></td>
        </tr>
        <tr>
            <td width="30%" align="right">年级：</td>
            <td width="70%"><div style="margin-left: 10px;">
                    <select name="rs_stu_year">
                        <option value="小学一年级">小学一年级</option>
                        <option value="小学二年级">小学二年级</option>
                        <option value="小学三年级">小学三年级</option>
                        <option value="小学四年级">小学四年级</option>
                        <option value="小学五年级">小学五年级</option>
                        <option value="小学六年级">小学六年级</option>
                        <option value="初中一年级">初中一年级</option>
                        <option value="初中二年级">初中二年级</option>
                        <option value="初中三年级">初中三年级</option>
                        <option value="高中一年级">高中一年级</option>
                        <option value="高中二年级">高中二年级</option>
                        <option value="高中三年级">高中三年级</option>
                        <option value="不详">不详</option>
                    </select>

                </div></td>
        </tr>
        <tr>
            <td width="30%" align="right">咨询师：</td>
            <td width="70%"><div style="margin-left: 10px;">
                    <select name="zss_user_id">
                        <foreach name="zs_list" item="vo">
                        <option value="{$vo.user_id}">{$vo.user_zsname}</option>
                        </foreach>
                    </select>
                    
                </div></td>
        </tr>
        <tr>
            <td width="30%" align="right">家长姓名：</td>
            <td width="70%"><div style="margin-left: 10px;"><input type="text" size="15" value="" name="rs_stu_jiazhang" /></div></td>
        </tr>
        <tr>
            <td width="30%" align="right">联系方式：</td>
            <td width="70%"><div style="margin-left: 10px;"><input type="text" size="15" value="" name="rs_tel" /></div></td>
        </tr>
        <tr>
            <td width="30%" align="right">学生姓名：</td>
            <td width="70%"><div style="margin-left: 10px;"><input type="text" size="15" value="" name="rs_stu_name" /></div></td>
        </tr>
        <tr>
            <td width="30%" align="right">学科：</td>
            <td width="70%"><div style="margin-left: 10px;"><input type="text" size="15" value="" name="rs_xueke" /></div></td>
        </tr>
        <tr>
            <td width="30%" align="right">备注：</td>
            <td width="70%"><div style="margin-left: 10px;">
                    
                    <textarea cols="40" rows="4" name="rs_beizhu"></textarea>
                </div></td>
        </tr>
        <tr>
            <td colspan="2" width="100%"><input id="save" value=" 保   存 " type="button" /></td>
        </tr>
    </form>
</table>

</div>
<include file="Public:ender" />